package com.umgsai.thread.thread11;

public class ThreadB extends Thread {

	private MyList list;
	public ThreadB(MyList list) {
		super();
		this.list = list;
	}
	
	@Override
	public void run() {
		for (int i = 0; i < 10000; i++) {
			list.add("thread B" + i);
		}
	}
}